package com.sqsf.service.impl;

import com.sqsf.javabean.SysLog;
import com.sqsf.mapper.SysLogMapper;
import com.sqsf.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysLogServiceImpl implements SysLogService {
    @Autowired
    SysLogMapper sysLogMapper;
    @Override
    public List<SysLog> findAll(String username,String url) {
        return sysLogMapper.selectByUsernameAndUrl(username,url);
    }

    @Override
    public void add(SysLog sysLog) {
        sysLogMapper.insert(sysLog);
    }
}